/*
 * main.fx
 *
 * Created on 18.03.2010, 19:08:30
 */

package javafx191labs.asorokin.lab01;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.shape.Rectangle;
import javafx.scene.paint.Color;
import javafx.scene.image.ImageView;
import javafx.scene.image.Image;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.scene.effect.Glow;
import javafx.scene.effect.DropShadow;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.Circle;
import javafx.scene.effect.Lighting;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.shape.Polyline;
import javafx.scene.effect.Shadow;
import javafx.scene.effect.MotionBlur;
import javafx.scene.effect.InnerShadow;
import javafx.scene.Group;

Stage {
    title : "Домашний кинотеатр"
    scene: Scene {
	width: 640
	height: 480
	content: [
// стена
ImageView {
    image: Image {
    backgroundLoading: true
    url: "{__DIR__}image.jpg"
    width: 640
    height: 480
    }
}

// пол
ImageView {
    y: 380
    image: Image {
    url: "{__DIR__}image2.jpg"
    }
}

// телевизор
Rectangle {
    x: 150, y: 80
    arcWidth: 10  arcHeight: 10
    width: 350, height: 200
    fill: Color.BLACK
    effect: DropShadow {
        offsetX: 15
	offsetY: 15
	color: Color.BLACK
	radius: 50
    }
}

// экран
Rectangle {
    x: 160, y: 90
    width: 330, height: 170
    fill: LinearGradient {
    startX : 0.0
    startY : 0.0
    endX : 1.0
    endY : 0.0
    stops: [
	Stop {
            color : Color.CYAN
            offset: 0.0
            },
	Stop {
            color : Color.PINK
            offset: 1.0
            },
        ]
    }
}

Text {
    font : Font {
        size: 8
	}
    x: 315, y: 271
    content: "SHARP"
    fill: Color.WHITE
}

// лампы
Circle {
    centerX: 60, centerY: 40
    radius: 30
    fill: Color.WHITE
    effect: GaussianBlur {
        radius: 30
    }
}
Circle {
    centerX: 580, centerY: 40
    radius: 30
    fill: Color.WHITE
    effect: GaussianBlur {
        radius: 30
    }
}

// аудио система
Rectangle {
    x: 40, y: 160
    width: 50, height: 180
    arcWidth: 10  arcHeight: 10
    fill: LinearGradient {
    startX : 0.0
    startY : 0.0
    endX : 0.5
    endY : 0.0
    stops: [
        Stop {
            color : Color.GRAY
            offset: 0.0
            },
	Stop {
            color : Color.BLACK
            offset: 1.0
            },
        ]
    }
}

Polyline {
    points : [ 60,340, 60,390, 45,400, 85,400, 70,390, 70,340, 60,340 ]
    strokeWidth: 1.0
    fill: LinearGradient {
        startX : 0.0
	startY : 0.0
	endX : 0.5
	endY : 0.0
	stops: [
            Stop {
		color : Color.GRAY
		offset: 0.0
		},
            Stop {
		color : Color.BLACK
		offset: 1.0
		},
       	]
    }
}

Circle {
    centerX: 65, centerY: 290
    radius: 20
    fill: Color.WHITE
    effect: InnerShadow {
        choke: 0.5
	offsetX: 10
	offsetY: 10
	radius: 10
	color: Color.WHEAT
    }
}
Circle {
    centerX: 65, centerY: 290
    radius: 5
    fill: Color.BLACK
}

// нижний динамик
Circle {
    centerX: 65, centerY: 210
    radius: 20
    fill: Color.WHITE
    effect: InnerShadow {
        choke: 0.5
	offsetX: 10
	offsetY: 10
	radius: 10
	color: Color.WHEAT
    }
}
Circle {
    centerX: 65, centerY: 210
    radius: 5
    fill: Color.BLACK
}
// конец аудои системы

// 2 колонка
Rectangle {
    x: 550, y: 160
    width: 50, height: 180
    arcWidth: 10  arcHeight: 10
    fill: LinearGradient {
	startX : 0.0
	startY : 0.0
	endX : 0.5
	endY : 0.0
	stops: [
            Stop {
                color : Color.GRAY
		offset: 0.0
		},
            Stop {
		color : Color.BLACK
		offset: 1.0
		},
            ]
        }
}

Polyline {
    points : [ 570,340, 570,390, 555,400, 595,400, 580,390, 580,340, 570,340 ]
    strokeWidth: 1.0
    fill: LinearGradient {
        startX : 0.0
	startY : 0.0
	endX : 0.5
	endY : 0.0
	stops: [
            Stop {
		color : Color.GRAY
                offset: 0.0
		},
            Stop {
		color : Color.BLACK
		offset: 1.0
		},
            ]
        }
}

Circle {
    centerX: 575, centerY: 290
    radius: 20
    fill: Color.WHITE
    effect: InnerShadow {
        choke: 0.5
	offsetX: 10
	offsetY: 10
	radius: 10
	color: Color.WHEAT
    }
}
Circle {
    centerX: 575, centerY: 290
    radius: 5
    fill: Color.BLACK
}

// нижний динамик
Circle {
    centerX: 575, centerY: 210
    radius: 20
    fill: Color.WHITE
    effect: InnerShadow {
	choke: 0.5
	offsetX: 10
	offsetY: 10
	radius: 10
	color: Color.WHEAT
    }
}
Circle {
    centerX: 575, centerY: 210
    radius: 5
    fill: Color.BLACK
}
]
}
}